﻿@using System.Web.Mvc;

@helper JavaScript(string jsurl)
{
    <text>
    <script type="text/javascript" src="@(jsurl)"></script>
    </text>
}

@helper Css(string cssurl)
{
    <text>
    <link href="@(cssurl)" rel="stylesheet" type="text/css" />
    </text>
}

@helper AccessHtml(WebViewPage webView, MusicForMvc3.Method.UserAccess access, string html)
{
    string user_access = webView.ViewBag.Access;
    if (user_access != null && user_access.Contains(access.ToString()))
    {
    @MvcHtmlString.Create(html)
    }    
}